package com.server.pinggu.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.commons.lang3.StringUtils;
import com.server.pinggu.mapper.SenCedanLogMapper;
import com.server.pinggu.domain.SenCedanLog;
import com.server.pinggu.service.ISenCedanLogService;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ltao
 * @date 2022-10-23
 */
@Service
public class SenCedanLogServiceImpl extends ServiceImpl<SenCedanLogMapper, SenCedanLog> implements ISenCedanLogService {

    @Override
    public List<SenCedanLog> queryList(SenCedanLog senCedanLog) {
        LambdaQueryWrapper<SenCedanLog> lqw = Wrappers.lambdaQuery();
        if (senCedanLog.getUid() != null){
            lqw.eq(SenCedanLog::getUid ,senCedanLog.getUid());
        }
        if (senCedanLog.getFid() != null){
            lqw.eq(SenCedanLog::getFid ,senCedanLog.getFid());
        }
        if (senCedanLog.getDtime() != null){
            lqw.eq(SenCedanLog::getDtime ,senCedanLog.getDtime());
        }
        return this.list(lqw);
    }
}